package com.qidian.mes.qc.controller;

import com.qidian.mes.qc.service.DemoService;
import com.qidian.mes.util.pojo.MESResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/gen")
@CrossOrigin
public class DemoController {

    @Autowired
    private DemoService demoService;

    @RequestMapping
    public MESResult gen(){
        return demoService.gen();
    }

    @RequestMapping("/template")
    public MESResult template(){
        return demoService.template();
    }

    @RequestMapping("/iqc")
    public MESResult iqc(){
        return demoService.iqc();
    }




}
